<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<table cellspacing="0" width="100%">
	<tr>
		<td align="left">
			<input style="display:none" id="btnBarSearch" type="button" value="查询" class="btn" onclick='<%=request.getParameter("search")%>'/>
			<input style="display:none" id="btnBarAdd" type="button" value="新增" class="btn" onclick='<%=request.getParameter("add")%>'/>
			<input style="display:none" id="btnBarDel" type="button" value="删除" class="btn" onclick='<%=request.getParameter("del")%>'/>
			<span id="otherBtnSpan"></span>
		</td>
	</tr>
</table>

<script type="text/javascript">
$(function(){
	initBtnBar();
});

function initBtnBar()
{
	var search = '<%=request.getParameter("search")%>';
	var add = '<%=request.getParameter("add")%>';
	var del = '<%=request.getParameter("del")%>';
	var btnBarSearch = document.getElementById('btnBarSearch');
	var btnBarAdd = document.getElementById('btnBarAdd');
	var btnBarDel = document.getElementById('btnBarDel');
	if('' != search)
	{
		btnBarSearch.style.display = 'inline';
	}
	if('' != add)
	{
		btnBarAdd.style.display = 'inline';
	}
	if('' != del)
	{
		btnBarDel.style.display = 'inline';
	}
}
</script>
